<?php

/**
 * This file is part of the Codizer package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @copyright   Copyright (c) 2010 Advisa (http://www.advisa.fr)
 * @author      Codizer Core Team <team@codizer.org>
 * @package     Codizer
 */

/**
 * Else condition for hasRight
 *
 * SEE function.hasRight.php
 *
 * @example : {hasRight rule="news_display"}right ok{hasRightElse}not right{/hasRight}
 */
function smarty_function_hasRightElse($params, &$smarty)
{
    return $smarty->left_delimiter . 'hasRightElse' . $smarty->right_delimiter;
}
